<?php
 
namespace models\entities;
 
/**
 * @Entity(repositoryClass="models\repositories\DokumenFisikRepository")
 * @Table(name="dokumen_fisik")
 */
class DokumenFisik {
 
/**
 * @Id
 * @Column(name="id", type="integer", length=11, unique=true, nullable=false)
 */
	protected $id;

/**
 * @Column(name="rak_id", type="integer", length=11)
 */
	protected $rakId;

/**
 * @Column(name="timestamp", type="datetime", nullable=true)
 */
	protected $timestamp; 

/**
 * 
 * @ManyToOne(targetEntity="Dokumen")
 * @JoinColumn(name="Dokumen_id", referencedColumnName="id")
 */
	protected $dokumen;

/**
 * 
 * @ManyToOne(targetEntity="Lemari")
 * @JoinColumn(name="lemari_kode", referencedColumnName="kode")
 */
	protected $lemariKode;

/**
 * 
 * @ManyToOne(targetEntity="Laci")
 * @JoinColumn(name="laci_kode", referencedColumnName="kode")
 */
	protected $laciKode;

/**
 * 
 * @ManyToOne(targetEntity="Folder")
 * @JoinColumn(name="folder_kode", referencedColumnName="kode")
 */
	protected $folderKode;

	/**
 * 
 * @ManyToOne(targetEntity="Filing")
 * @JoinColumn(name="filing_kode", referencedColumnName="kode")
 */
	protected $filingKode;


	public function setId($id)
	{
	    $this->id = $id;
	}
 
	public function getId()
	{
	    return $this->id;
	}

	public function setRakId($rakId)
	{
	    $this->rakId = $rakId;
	}
 
	public function getRakId()
	{
	    return $this->rakId;
	}

	public function setTimestamp($timestamp)
    {
        // will NOT be saved in the database
        $this->timestamp = new \DateTime("now");
    }
    
	public function getTimestamp()
    {
        return $timestamp;
    }
	
	public function setDokumen($dokumen)
	{
	    $this->dokumen = $dokumen;
	}
 
	public function getDokumen()
	{
	    return $this->dokumen;
	}
	
	public function setLemariKode($lemariKode)
	{
	    $this->lemariKode = $lemariKode;
	}
 
	public function getLemariKode()
	{
	    return $this->lemariKode;
	}
	
	public function setLaciKode($laciKode)
	{
	    $this->laciKode = $laciKode;
	}
 
	public function getLaciKode()
	{
	    return $this->laciKode;
	}
	
	public function setFolderKode($folderKode)
	{
	    $this->folderKode = $folderKode;
	}
 
	public function getFolderKode()
	{
	    return $this->folderKode;
	}
	
	public function setFilingKode($filingKode)
	{
	    $this->filingKode = $filingKode;
	}
 
	public function getFilingKode()
	{
	    return $this->filingKode;
	}

}